package com.onluy.servic.sysmgr;

import com.onluy.frameworkcloud.Param.*;
import com.onluy.frameworkcloud.data.util.InParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "ONLUY-DEPARTMENT" )
@RequestMapping(value = "/depart")
public interface DeptClientService
{
	@RequestMapping(value = "/target", method = RequestMethod.POST)
	public RspInfo<InParam<String,Object>> model(ReqInfo<ReqHead, InParam<String, Object>> reqInfo);

	@RequestMapping(value = "/add", method = RequestMethod.POST)
	public RspInfo<InParam<String,Object>> add(ReqInfo<ReqHead, InParam<String, Object>> reqInfo);

	@RequestMapping(value = "/update", method = RequestMethod.POST)
	public RspInfo<InParam<String,Object>> update(ReqInfo<ReqHead, InParam<String, Object>> reqInfo);

	@RequestMapping(value = "/del", method = RequestMethod.POST)
	public RspInfo<InParam<String,Object>> del(ReqInfo<ReqHead, InParam<String, Object>> reqInfo);

    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public RspInfo<PageInfo<InParam >> list(ReqInfo<ParamPagination, InParam<String, Object>> reqInfo);

    @RequestMapping(value = "/simplelist", method = RequestMethod.POST)
    public RspInfo<PageInfo<InParam >> simplelist(ReqInfo<ParamPagination, InParam<String, Object>> reqInfo);

}
